import request from '@/utils/request'

export function getList(params: any) {
  return request({
    url: '/SystemSet/BusinessFlowsetList',
    method: 'get',
    params,
  })
}

export function makeBusinessFlow(data: any) {
  return request({
    url: '/SystemSet/MakeBusinessFlow',
    method: 'post',
    data,
  })
}

export function doState(data: any) {
  return request({
    url: '/SystemSet/StateBusinessFlow',
    method: 'post',
    data,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/SystemSet/EditBusinessFlow',
    method: 'post',
    data,
  })
}

export function doSetActStaff(data: any) {
  return request({
    url: '/SystemSet/SetBusinessFlowActStaff',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/systemset/business/flowset/doDelete',
    method: 'post',
    data,
  })
}
